import moment from 'moment'

export function week(time) {
  const weekText = [
    '星期日',
    '星期一',
    '星期二',
    '星期三',
    '星期四',
    '星期五',
    '星期六'
  ]
  const week = moment(time).weekday()
  return weekText[week]
}
